import request from '@/utils/request'

// 查询帮助中心列表
export function listBangzhuzhongxin(query) {
  return request({
    url: '/system/bangzhuzhongxin/list',
    method: 'get',
    params: query
  })
}

// 查询问题分类
export function listWentifenlei(query) {
  return request({
    url: '/system/wentifenlei/list',
    method: 'get',
    params: query
  })
}

// 查询客户端列表
export function listKehuduan(query) {
  return request({
    url: '/system/kehuduan/list',
    method: 'get',
    params: query
  })
}

// 查询状态列表
export function listZhuangtai(query) {
  return request({
    url: '/system/zhuangtai/list',
    method: 'get',
    params: query
  })
}

// 查询帮助中心详细
export function getBangzhuzhongxin(bzzxId) {
  return request({
    url: '/system/bangzhuzhongxin/' + bzzxId,
    method: 'get'
  })
}

// 新增帮助中心
export function addBangzhuzhongxin(data) {
  return request({
    url: '/system/bangzhuzhongxin',
    method: 'post',
    data: data
  })
}

// 修改帮助中心
export function updateBangzhuzhongxin(data) {
  return request({
    url: '/system/bangzhuzhongxin',
    method: 'put',
    data: data
  })
}

// 删除帮助中心
export function delBangzhuzhongxin(bzzxId) {
  return request({
    url: '/system/bangzhuzhongxin/' + bzzxId,
    method: 'delete'
  })
}
